import 'package:favor_cate/core/viewmodel/favor_meal_veiw_model.dart';
import 'package:favor_cate/ui/widgets/meal_widget.dart';
import 'package:flutter/cupertino.dart';
import 'package:provider/provider.dart';

class FavorContent extends StatelessWidget {
  
  @override
  Widget build(BuildContext context) {
    return Consumer<FavorMealViewModel>(
        builder: (ctx, model, child) {
          return ListView.builder(
            itemCount: model.favorMeal.length,
            itemBuilder: (context, index) {
              return MealItem(model.favorMeal[index]);
          });
    }
    );
  }
}
